﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace SystemLYH.API.Application.Command.LocationCommand
{
    public class LocationUpdateCommand:IRequest<int>
    {
        /// <summary>
        /// 库位Id
        /// </summary>
        public int LocationId { get; set; }
        /// <summary>
        /// 库位名称
        /// </summary>
        public string? LocationName { get; set; }
        /// <summary>
        /// 库位编号
        /// </summary>
        public string? LocationNumber { get; set; }
        /// <summary>
        /// 库位面积
        /// </summary>
        public string? LocationArea { get; set; }
        /// <summary>
        /// 最大载重量
        /// </summary>
        public string? Locationweight { get; set; }
        /// <summary>
        /// 所属仓库
        /// </summary>
        public string? WarehouseID { get; set; }
        /// <summary>
        /// 库位状态
        /// </summary>
        public bool LocationState { get; set; }
        /// <summary>
        /// 库位备注
        /// </summary>
        public string? LocationRemark { get; set; }
        /// <summary>
        /// 所属库区
        /// </summary>
        public string? ReservoirId { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelLocation { get; set; }

        /// <summary>
        /// 添加人
        /// </summary>
        public string? AddName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; } = "李子坤";
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now.ToUniversalTime();

    }
}
